package com.example.perplonews.a_d_fragment.d_live

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.perplonews.R
import com.example.perplonews.a_d_fragment.c_video.entity.Data
import com.example.perplonews.a_d_fragment.c_video.entity.SmallVideo

class Live_Adapter (list:ArrayList<Data>):BaseQuickAdapter<Data,BaseViewHolder>(R.layout.live_item,list) {
    override fun convert(helper: BaseViewHolder, item: Data) {
        helper.setText(R.id.live_tex,item.title)
        Glide.with(mContext).load(item.thumbnail_pic_s).into(helper.getView(R.id.live_img))
    }
}